-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(jellyfish-api-core): add encryptWallet, walletPassphrase, walletPassphraseChange, walletLock RPC #1969
base: main
Are you sure you want to change the base?
Conversation
Code Climate has analyzed commit a2c61fb and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
✅ Deploy Preview for jellyfishsdk ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Codecov ReportBase: 90.74% // Head: 89.10% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #1969 +/- ##
==========================================
- Coverage 90.74% 89.10% -1.64%
==========================================
Files 367 363 -4
Lines 10771 11027 +256
Branches 1376 1439 +63
==========================================
+ Hits 9774 9826 +52
- Misses 952 1146 +194
- Partials 45 55 +10
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Docker build preview for jellyfish/apps is ready! Built with commit 66b16a8
You can also get an immutable image with the commit hash
|
What this PR does / why we need it:
/kind feature
Which issue(s) does this PR fixes?:
Fixes part of #48 by adding
encryptWallet()
&walletPassphrase()
.encryptWallet()
allows the encryption of wallet for the first time using a custom ‘passphrase’. Transactions and calls related to private keys will thereafter require a passphrase before execution.walletPassphrase()
stores the wallet decryption key in memory for ‘timeout’ seconds. Calling 'walletpassphrase' when wallet is unlocked will set a new unlock time that overrides the old setting.Additional comments?:
Primary purpose is to add a layer of security towards the wallet in storing of private keys.